package com.example.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置项, 引用的应用可以在application.properties或者yaml文件中添加配置
 */
@ConfigurationProperties(prefix = "zyj")
public class MyConfigurationProperties {

    /**
     * 这里写好javadoc, spring-boot-configuration-processor 会生成META-INF/spring-autoconfigure-metadata.properties文件 帮我们处理好注释的
     */
    private String things = "apple(default)";//application.properties或者yaml文件中添加配置的时候IDE会有提示

    public String getThings() {
        return things;
    }

    public void setThings(String things) {
        this.things = things;
    }
}
